package cn.itcast.crm.dao.impl;

import cn.itcast.crm.dao.CustomerDao;
import cn.itcast.crm.entity.Customer;
import org.springframework.orm.hibernate5.support.HibernateDaoSupport;

public class CustomerDaoImpl extends HibernateDaoSupport implements CustomerDao {

    @Override
    public Customer findById(Long id) {

        return this.getHibernateTemplate().get(Customer.class, id);
    }

}
